< previous page page_383 next page >

Page 383
Public Property Let Index(ByVal vNewValue As Variant)
    strIndex = vNewValue
End Property

Public Property Get IndexFlag() As Boolean
    IndexFlag = blnIndex
End Property

Public Property Let IndexFlag(ByVal vNewValue As Boolean)
    blnIndex = vNewValue
End Property

Public Property Get BtnBarAlign() As bbAlign
    BtnBarAlign = intBBAlign
End Property

Public Property Let BtnBarAlign(ByVal vNewValue As bbAlign)
    intBBAlign = vNewValue
End Property

Public Property Get RSFocus() As Variant
    RSFocus = strFocus
End Property

Public Property Let RSFocus(ByVal vNewValue As Variant)
    strFocus = vNewValue
End Property
Next you need to add the code for the Class_Initialize and the Class_Terminate events. See Listing 10.8 for the code for these two events.
Type.gifListing 10.8. Coding the Class_Initialize and Class_Terminate events.
Private Sub Class_Initialize()
    '
    ' set inital values
    '
    intRSType = rsDynasetType
    strWSName = "wsTemp"
    strDBName = ""
    strRSName = ""
    '
    intBBAlign = bbTop
    '
End Sub

Private Sub Class_Terminate()
    '
    ' close out class
continues

 
< previous page page_383 next page >

If you like this book, buy it!